﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/SiteTemplate.Master" AutoEventWireup="True"
    CodeBehind="CategoryWeather.aspx.cs" Inherits="LoveMusic.StoryListByCategoryView" %>

<%@ Register Src="../Shared/WeatherVideoAudio.ascx" TagName="VideoAudio" TagPrefix="va" %>
<%@ Import Namespace="LoveMusic" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <% var viewData = (StoryListByCategoryData)ViewData.Model; %>
    <title>Weather music -
        <%=Server.HtmlEncode(viewData.WeatherInfo.Condition) %>
        - We recommend this songs for you: </title>
    <meta name="description" content="Music should go right through you, leave some of itself inside you, and take some of you with it when it leaves.We love our site, hope you will too. " />
    <meta name="keywords" content="<%=Server.HtmlEncode(viewData.Category)%>,<%= DateTime.Now.Year-1 %>,<%= DateTime.Now.Year %>,find,new,music,user,song,share,rate,listen,download,new music,groovy" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <% var viewData = (StoryListByCategoryData)ViewData.Model; %>
    <table style="width: 100%;">
        <tr>
            <td colspan="2" style="position: relative; margin-left: 20px;" valign="top">
                <div class="captionText" style="padding: 15px;">
                    Hello <span class="whiteBoldText">
                        <%=Server.HtmlEncode(viewData.UserName)%></span> Your ip adress is <span class="whiteBoldText">
                            <%=Server.HtmlEncode(viewData.VisitorInfo.Ip) %></span>
                    <br />
                    You are from <span class="whiteBoldText">
                        <%=Server.HtmlEncode(viewData.VisitorInfo.City) %>
                        <%=Server.HtmlEncode(viewData.VisitorInfo.Country+" "+viewData.VisitorInfo.Code) %>
                    </span>
                    <img src="<%=Server.HtmlEncode(viewData.VisitorInfo.Flag) %>" alt="countryFlag" />
                    Your weather is <span class="whiteBoldText">
                        <%=Server.HtmlEncode(viewData.WeatherInfo.Condition) %>
                    </span>
                    <img src="<%=Server.HtmlEncode(viewData.WeatherInfo.IconUrl) %>" alt="weatherIcon" />
                    Temperature: <span class="whiteBoldText">
                        <%=Server.HtmlEncode(viewData.WeatherInfo.Temp_c) %>
                        C ,&nbsp;&nbsp;
                        <%=Server.HtmlEncode(viewData.WeatherInfo.Temp_f) %>
                        F </span>
                    <%=Server.HtmlEncode(viewData.WeatherInfo.Wind_condition) %>
                    Category: <span class="whiteBoldText">
                        <%= Server.HtmlEncode(viewData.Category) %>
                    </span>We recommend this top
                    <%if (viewData.Category != "All") %>
                    <%=  Server.HtmlEncode(viewData.Category) %>
                    songs for you today:
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top">
                <va:VideoAudio ID="VideoAudio1" runat="server"></va:VideoAudio>
            </td>
        </tr>
    </table>
</asp:Content>
